package com.jianbing.entity;

import com.jianbing.dao.MongoDBDao;
import com.jianbing.util.TableUtils;

/**
 * Created by Han, Tixiang on 2016/10/12 0012.
 */
public class GjjLoanCity {
    private int id;
    private String name;
    private String jsName;
    private int province;
    private boolean hasBasicInfo = true;//人员基本信息
    private boolean hasLoanInfo; //公积金贷款基本信息
    private boolean hasDetail;//公积金明细
    private String url;
    private String queryStepParam;
    private int state = 0;

    public void setQueryStepParam(String queryStepParam) {
        this.queryStepParam = queryStepParam;
    }

    public String getQueryStepParam() {
        return queryStepParam;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setJsName(String jsName) {
        this.jsName = jsName;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getId() {

        return id;
    }

    public void setHasBasicInfo(boolean hasBasicInfo) {
        this.hasBasicInfo = hasBasicInfo;
    }

    public void setHasLoanInfo(boolean hasLoanInfo) {
        this.hasLoanInfo = hasLoanInfo;
    }

    public void setHasDetail(boolean hasDetail) {
        this.hasDetail = hasDetail;
    }

    public boolean isHasBasicInfo() {

        return hasBasicInfo;
    }

    public boolean isHasLoanInfo() {
        return hasLoanInfo;
    }

    public boolean isHasDetail() {
        return hasDetail;
    }

    public String getJsName() {
        return jsName;
    }

    public int getProvince() {
        return province;
    }

    public int getState() {
        return state;
    }


    public void setName(String name) {
        this.name = name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {

        return name;
    }

    public String getUrl() {
        return url;
    }


    public static void main(String[] args) throws Exception {
        GjjLoanCity city = new GjjLoanCity();
        city.setName("杭州");
        city.setProvince(1);
        city.setJsName("hangzhou.js");
        city.setState(1);
        city.setUrl("http://www.baidu.com");
        city.setQueryStepParam("[[{\"currentStep\":1,\"stepName\":\"input_account\",\"loginParam\":[{\"name\":\"id\",\"note\":\"请输入账号\"}],\"preStep\":null,\"nextStep\":2},{\"currentStep\":2,\"stepName\":\"input_phone_code\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码\"},{\"name\":\"code\",\"note\":\"请输入验证码\"}],\"preStep\":1,\"nextStep\":3},{\"currentStep\":3,\"stepName\":\"input_phone_code2\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码2\"},{\"name\":\"code\",\"note\":\"请输入验证码2\"}],\"preStep\":2,\"nextStep\":null}],[{\"currentStep\":1,\"stepName\":\"input_account\",\"loginParam\":[{\"name\":\"id\",\"note\":\"请输入账号\"}],\"preStep\":null,\"nextStep\":2},{\"currentStep\":2,\"stepName\":\"input_phone_code\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码\"},{\"name\":\"code\",\"note\":\"请输入验证码\"}],\"preStep\":1,\"nextStep\":3},{\"currentStep\":3,\"stepName\":\"input_phone_code2\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码2\"},{\"name\":\"code\",\"note\":\"请输入验证码2\"}],\"preStep\":2,\"nextStep\":null}]]");

        city.setId(MongoDBDao.getNextId(TableUtils.getTableName(GjjLoanCity.class), "id"));
        MongoDBDao.insert(TableUtils.getTableName(GjjLoanCity.class), city);
    }
}
